docs: fix the display of message dialog
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Thu, 13 Feb 2014 19:51:31 +0000 (14:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 14 Feb 2014 01:47:26 +0000 (20:47 -0500)
docs/tools/widgets.c

index 66d315a5c58edfe841213c3278a3c3daae7e1346..bfba4a9877aa406a9a1dd4a187ad752363fde046 100644 (file)
@@ -847,8 +847,8 @@ create_message_dialog (void)
                                   GTK_BUTTONS_OK,
                                   NULL);
   gtk_window_set_icon_name (GTK_WINDOW (widget), "edit-copy");
-  gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (widget),
-                                "<b>Message Dialog</b>\n\nWith secondary text");
+  gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (widget), "Message Dialog");
+  gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (widget), "%s", "With secondary text");
   return new_widget_info ("messagedialog", widget, ASIS);
 }